<!--src/main/resources/templates/pictrue/delete.html-->
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>删除图片</title>
    <link rel="stylesheet" type="text/css" th:href="@{/css/deletestyles.css}">
</head>
<body>
<h2>删除图片</h2>
<p>你确定要删除这个图片吗?</p>
<table>
    <tr>
        <th>图片编号</th>
        <th>图片标题</th>
        <th>图片内容</th>
        <th>图片地址</th>
        <th>用户编号</th>
    </tr>
    <tr>
        <td th:text="${picture.id}"></td>
        <td th:text="${picture.title}"></td>
        <td th:text="${picture.content}"></td>
        <td th:text="${picture.url}"></td>
        <td th:text="${picture.user_id}"></td>
    </tr>
</table>

<form method="post" th:action="@{/pictrue/delete/{id}(id=${picture.id})}">
    <input type="submit" value="确认删除" class="confirm-btn">
</form>

<a th:href="@{/pictrue/findAll}" class="cancel-btn">取消</a>
</body>
</html>
